package net.magicalcloud.magicalcloud.util;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.magicalcloud.magicalcloud.model.AppURL;

import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Retrofit工具包
 * Created by Pei on 2018/6/7.
 */

public class RetrofitUtil {

    //进行简单封装
    public static AppURL getAppUrl(){
        Retrofit retrofit = new Retrofit.Builder()
                .baseUrl("http://magicalcloud.peihuan.net/")
                .addConverterFactory(GsonConverterFactory.create())
                .build();
        return retrofit.create(AppURL.class);
    }
}
